#include "gd32f30x.h"
#include "DevicesPMU.h"


void vPMUDSleep(void)
{
    /* enable clock */
    rcu_periph_clock_enable(RCU_PMU);

    pmu_to_deepsleepmode(PMU_LDO_LOWPOWER, PMU_LOWDRIVER_DISABLE, WFI_CMD);
}

void vPMUDReset(void)
{
    /* 软件重启 */
    NVIC_SystemReset();

    while(1);
}
